package com.tal.pad.eye_protection.bridge;

import android.util.Log;

import com.tal.pad.eye_protection.AwConDetectApi;


public class PoseDetBridge {

    public static final String TAG = "PoseDetBridge";


//    /***
//     * 回调结果
//     * @param traceID
//     * @return
//     */
//
//
    public static int onResult(int[] box, int[] cls, String traceID)
    {
        AwConDetectApi.getInstance().setPoseDetResult(box,cls,traceID);
        Log.e(TAG, "onResult: " + " box = " + box + ", cls = " + cls + ", traceID = " + traceID);
        return 0;
    }

    /**
     * @param errorCode 错误码
     * @param errorMsg  错误信息
     * @param traceID   跟踪id
     * @return
     */
    public static int onError(int errorCode, String errorMsg, String traceID) {
        Log.e(TAG, "onError: " + " errorCode = " + errorCode + ", errorMsg = " + errorMsg + ", traceID = " + traceID);
        AwConDetectApi.getInstance().setErrorInfo(errorCode,errorMsg,traceID);
        return 0;
    }
}
